package com.xinqi.modules.exam.analyze.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.exam.analyze.domain.CourseExamPaperExplainEntity;
import com.xinqi.modules.exam.analyze.dto.req.CourseExamPaperExplainCreateDTO;
import com.xinqi.modules.exam.analyze.dto.req.CourseExamPaperExplainUpdateDTO;
import com.xinqi.modules.exam.analyze.dto.rsp.CourseExamPaperExplainResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 课程测评讲解转换
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseExamPaperExplainConvert {
    public abstract CourseExamPaperExplainEntity create(CourseExamPaperExplainCreateDTO s);

    public abstract CourseExamPaperExplainEntity update(CourseExamPaperExplainUpdateDTO s, @MappingTarget CourseExamPaperExplainEntity t);

    public abstract CourseExamPaperExplainEntity update(CourseExamPaperExplainUpdateDTO s);

    public abstract CourseExamPaperExplainResultDTO convert(CourseExamPaperExplainEntity s);
}
